import java.util.ArrayDeque;
import java.util.Scanner;
import java.util.Stack;

/**
 * \* Created with IntelliJ IDEA.
 * \* User: Administrator
 * \* Date: 2022/9/14
 * \* Time: 19:29
 * \* To change this template use File | Settings | File Templates.
 * \* Description:
 * \
 */
public class test2 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = 0;
        String [] strArr = new String[n];
        for(int i = 0; i < n;i++){
            strArr[i] = sc.next();
            remove(strArr[i]);
        }
    }
    public static void remove(String str){
        int count = 0;
        ArrayDeque<Character> deque = new ArrayDeque<>();
        char ch;
        for(int i = 0 ; i < str.length();i++){
            ch = str.charAt(i);
            if(deque.isEmpty() || deque.peek() != ch){
                deque.push(ch);
            }else{
                deque.poll();
                count++;
            }
        }
        if(count % 2 != 0){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
}
